package com.base.destroy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.stereotype.Component;

/**
 * Description
 * Author wangxh
 * Date 2020/7/17-2:19 下午
 * Version V1.0
 **/

@Component
public class DisposableBeanImpl implements DisposableBean {

    private static Logger logger = LoggerFactory.getLogger(DisposableBeanImpl.class);

    @Override
    public void destroy() throws Exception {
        logger.info("=========DisposableBeanImpl.destroy()=========");
    }
}
